﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lcmyjobs.Web.Admin.feedbacks
{
    public partial class invite1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["AdminLogin2"] != null)
                {

                    DataSet ds = new lcmyjobs.BLL.news().GetList(" ntid=13 ");

                    if (ds.Tables[0].Rows.Count > 0)
                    {
                        this.txtncontent.Text = ds.Tables[0].Rows[0]["ncontent"].ToString();
                    }


                }
                else
                {
                    Maticsoft.Common.MessageBox.ResponseScript(this, "alert('请先登陆！');top.location.href='../../admin/adminlogin2.aspx'");
                }
            }
        }

        protected void btn_save_Click(object sender, EventArgs e)
        {
            string t = this.txtncontent.Text;

            lcmyjobs.BLL.news n = new lcmyjobs.BLL.news();

            if (n.UpdateWherestr("ncontent", t, " ntid=13 "))
            {
                Maticsoft.Common.MessageBox.Show(this, "保存成功！");
            }
        }
    }
}